/****************************************************************
**
** Qt tutorial 4
**
****************************************************************/

#include <QApplication>

#include "control.h"


int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    ControlWidget widget;
    widget.setAttribute(Qt::WA_QuitOnClose);
    widget.show();
    QObject::connect(&widget, SIGNAL(destroyed () ), &app, SLOT(quit()));
    //QObject::connect(&app, SIGNAL(lastWindowClosed () ), &app, SLOT(quit()));
    return app.exec();
}
